-- SID Number for reputatuion
-- [0] Unknown
-- [1] hated
-- [2] hostile
-- [3] unfriendly
-- [4] neutral
-- [5] friendly
-- [6] honored
-- [7] revered
-- [8] exalted

DailesDATE = "%A, %B %d, %Y"; DailiesMONTH = "%m"; DailiesDAY = "%d"
if type(DailesDATE) == "string" then
	DailesDATE = date(DailesDATE)
	DailiesMONTH = tonumber(date(DailiesMONTH))
	DailiesDAY = tonumber(date(DailiesDAY))
	DailiesMONTHDAY = DailiesMONTH.."/"..DailiesDAY
else
	DailesDATE = DATE()
end

SkyguardValue = 0; NetherwingValue = 0; CookingValue = 0; OgrilaValue = 0; BGPvPValue = 0;
NInstanceValue = 0; HInstanceValue = 0; HolidayValue = 0; HonorHoldValue = 0; ThrallmarValue = 0;

hasHerbalism = nil; hasMining = nil; hasSkinning = nil;

DailyQuestsList = {
	-- Battlegrounds
	["Call to Arms: Warsong Gulch"] = {icon = "Interface\\Icons\\INV_Misc_Rune_07", group = "BGPvP", SID = 0, ["honor"] = 420, gold = 119900},
	["Call to Arms: Arathi Basin"] = {icon = "Interface\\Icons\\INV_Jewelry_Amulet_07", group = "BGPvP", SID = 0, ["honor"] = 420, gold = 119900},
	["Call to Arms: Eye of the Storm"] = {icon = "Interface\\Icons\\Spell_Nature_EyeOfTheStorm", group = "BGPvP", SID = 0, ["honor"] = 420, gold = 119900},
	["Call to Arms: Alterac Valley"] = {icon = "Interface\\Icons\\INV_Jewelry_Necklace_21", group = "BGPvP", SID = 0, ["honor"] = 420, gold = 119900},
	
	-- Regular Instances
	["Wanted: Shattered Hand Centurions"] = {icon = "Interface\\Addons\\Dailies\\Icons\\Centurion.tga", loc = "Shattered Halls", group = "NInstance", SID = 0, ["rep"] = {"Honor Hold:250", "The Consortium:250"}, ["rewards"] = {"29460:1"}, gold = 163900}, --Shattered Halls
	["Wanted: Tempest-Forge Destroyers"] = {icon = "Interface\\Addons\\Dailies\\Icons\\Destroyer.tga", loc = "Mechanar", group = "NInstance", SID = 0, ["rewards"] = {"29460:1"}, gold = 163900}, --The Mechanar
	["Wanted: Arcatraz Sentinels"] = {icon = "Interface\\Addons\\Dailies\\Icons\\Sentinel.tga", loc = "Arcatraz", group = "NInstance", SID = 0, ["rewards"] = {"29460:1"}, gold = 163900}, --Arcatraz
	["Wanted: Coilfang Myrmidons"] = {icon = "Interface\\Addons\\Dailies\\Icons\\Myrmidon.tga", loc = "Steamvault", group = "NInstance", SID = 0, ["rewards"] = {"29460:1"}, gold = 163900}, --Steamvault
	["Wanted: Rift Lords"] = {icon = "Interface\\Addons\\Dailies\\Icons\\Rift.tga", loc = "Black Morass", group = "NInstance", SID = 0, ["rewards"] = {"29460:1"}, gold = 163900}, --Black Morass
	["Wanted: Malicious Instructors"] = {icon = "Interface\\Addons\\Dailies\\Icons\\Instructor.tga", loc = "Shadow Labyrinth", group = "NInstance", SID = 0, ["rewards"] = {"29460:1"}, gold = 163900}, --Shadow Labyrinth

	-- Heroic Instances
	["Wanted: Pathaleon's Projector"] = {icon = "Interface\\Icons\\INV_Misc_EngGizmos_08", loc = "Mechanar", group = "HInstance", SID = 0, ["rewards"] = {"29434:2"}, gold = 246000}, -- Mechnar
	["Wanted: The Heart of Quagmirran"] = {icon = "Interface\\Icons\\INV_Misc_Organ_02", loc = "Slave Pens", group = "HInstance", SID = 0, ["rewards"] = {"29434:2"}, gold = 246000}, -- Slave Pens
	["Wanted: Nazan's Riding Crop"] = {icon = "Interface\\Icons\\INV_Misc_Crop_01", loc = "Ramparts", group = "HInstance", SID = 0, ["rep"] = {"Honor Hold:350", "The Consortium:350"}, ["rewards"] = {"29434:2"}, gold = 246000}, --Ramparts
	["Wanted: A Black Stalker Egg"] = {icon = "Interface\\Icons\\INV_Misc_ShadowEgg", loc = "Underbog", group = "HInstance", SID = 0, ["rewards"] = {"29434:2"}, gold = 246000}, --Underbog
	["Wanted: The Epoch Hunter's Head"] = {icon = "Interface\\Icons\\INV_Misc_Head_Dragon_Black", loc = "Old Hillsbrad Foothills", group = "HInstance", SID = 0, ["rewards"] = {"29434:2"}, gold = 246000}, --Durnholde
	["Wanted: Keli'dan's Feathered Stave"] = {icon = "Interface\\Icons\\INV_Staff_Goldfeathered_01", loc = "Blood Furnace", group = "HInstance", SID = 0, ["rewards"] = {"29434:2"}, gold = 246000}, --Blood Furnace
	["Wanted: Shaffar's Wondrous Pendant"] = {icon = "Interface\\Icons\\INV_Jewelry_Amulet_07", loc = "Mana Tombs", group = "HInstance", SID = 0, ["rewards"] = {"29434:2"}, gold = 246000}, --Mana Tombs
	["Wanted: Bladefist's Seal"] = {icon = "Interface\\Icons\\INV_SummerFest_Symbol_Medium", loc = "Shattered Halls", group = "HInstance", SID = 0, ["rep"] = {"Honor Hold:350", "The Consortium:350"}, ["rewards"] = {"29434:2"}, gold = 246000}, --Shattered Halls
	["Wanted: The Headfeathers of Ikiss"] = {icon = "Interface\\Icons\\INV_Feather_06", loc = "Sethekk Halls", group = "HInstance", SID = 0, ["rep"] = {"Lower City:350", "The Consortium:350"}, ["rewards"] = {"29434:2"}, gold = 246000}, -- Sethekk Halls	
	["Wanted: Murmur's Whisper"] = {icon = "Interface\\Icons\\INV_Elemental_Mote_Air01", loc = "Shadow Labs", group = "HInstance", SID = 0, ["rewards"] = {"29434:2"}, gold = 246000}, --Shadow Labs
	["Wanted: The Scroll of Skyriss"] = {icon = "Interface\\Icons\\INV_Misc_SymbolofKings_01", loc = "Arcatraz", group = "HInstance", SID = 0, ["rep"] = {"The Sha'tar:350", "The Consortium:350"}, ["rewards"] = {"29434:2"}, gold = 246000}, -- Arcatraz

	-- Not positive, from Wowhead
	["Wanted: The Exarch's Soul Gem"] = {icon = "Interface\\Icons\\INV_Misc_Gem_Pearl_07", loc = "Auchenai Crypts", group = "HInstance", SID = 0, ["rewards"] = {"29434:2"}, gold = 246000}, -- Auchenai Crypt
	["Wanted: Aeonus's Hourglass"] = {icon = "Interface\\Icons\\INV_Gizmo_KhoriumPowerCore", loc = "Black Morass", group = "HInstance", SID = 0, ["rewards"] = {"29434:2"}, gold = 246000}, -- Black Morasses
	["Wanted: Warp Splinter Clipping"] = {icon = "Interface\\Icons\\INV_Misc_Branch_01", loc = "Botanica", group = "HInstance", SID = 0, ["rewards"] = {"29434:2"}, gold = 246000}, --Botanica
	["Wanted: The Warlord's Treatise"] = {icon = "Interface\\Icons\\INV_Misc_Book_05", loc = "Steam Vault", group = "HInstance", SID = 0, ["rewards"] = {"29434:2"}, gold = 246000}, --Steam Vault
	
	-- Cooking
	["Revenge is Tasty"] = {icon = "Interface\\Icons\\INV_Misc_Food_46", group = "Cooking", SID = 0, ["rewards"] = {"33844:1", "33857:1"}, gold = 75900},
	["Manalicious"] = {icon = "Interface\\Icons\\INV_Misc_Food_58", group = "Cooking", SID = 0, ["rewards"] = {"33844:1", "33857:1"}, gold = 75900}, --Herbalism
	["Soup for the Soul"] = {icon = "Interface\\Icons\\INV_Misc_Food_64", group = "Cooking", SID = 0, ["rewards"] = {"33844:1", "33857:1"}, gold = 75900},
	["Super Hot Stew"] = {icon = "Interface\\Icons\\INV_Misc_Food_48", group = "Cooking", SID = 0, ["rewards"] = {"33844:1", "33857:1"}, gold = 75900},
	
	-- Sha'tari Skyguard
	["Wrangle More Aether Rays!"] = {icon = "Interface\\Icons\\INV_Misc_Noose_01", group = "Sha'tari Skyguard", SID = 4, ["rep"] = {"Ogri'la:350", "Sha'tari Skyguard:350"}, ["rewards"] = {"32569:15"}, gold = 119900},
	["Fires Over Skettis"] = {icon = "Interface\\Icons\\INV_Misc_Bomb_07", group = "Sha'tari Skyguard", SID = 4, ["rep"] = {"Sha'tari Skyguard:350"}, gold = 119900},
	["Escape from Skettis"] = {icon = "Interface\\Addons\\Dailies\\Icons\\ES.tga", group = "Sha'tari Skyguard", SID = 4, ["rep"] = {"Sha'tari Skyguard:350"}, ["rewards"] = {"28100:3", "28101:2"}, gold = 91000},
	["Bomb Them Again!"] = {icon = "Interface\\Icons\\INV_Misc_Bomb_04", group = "Sha'tari Skyguard", SID = 4, ["rep"] = {"Ogri'la:500", "Sha'tari Skyguard:500"}, ["rewards"] = {"32569:15"}, gold = 119900},
	
	-- Ogri'la
	["The Relic's Emanation"] = {icon = "Interface\\Icons\\INV_Misc_Apexis_Shard", group = "Ogri'la", SID = 4, ["rep"] = {"Ogri'la:350"}, ["rewards"] = {"32569:15"}, gold = 91000},
	["Banish More Demons"] = {icon = "Interface\\Icons\\INV_Misc_Gem_AzureDraenite_02", group = "Ogri'la", SID = 6, ["rep"] = {"Ogri'la:350"}, ["rewards"] = {"32569:15", "32777:1"}, gold = 119900},

	-- Netherwing
	["The Deadliest Trap Ever Laid"] = {icon = "Interface\\Icons\\Ability_Warrior_EndlessRage", group = "Netherwing", SID = 7, ["rep"] = {"Netherwing:500"}, gold = 75900},
	["The Not-So-Friendly Skies..."] = {icon = "Interface\\Icons\\INV_Bijou_Blue", group = "Netherwing", SID = 4, ["rep"] = {"Netherwing:250"}, gold = 119900},
	["The Booterang: A Cure For The Common Worthless Peon"] = {icon = "Interface\\Icons\\INV_Boots_Chain_01", group = "Netherwing", SID = 5, ["rep"] = {"Netherwing:350"}, gold = 119900},
	["Picking Up The Pieces..."] = {icon = "Interface\\Icons\\INV_Crate_04", group = "Netherwing", SID = 5, ["rep"] = {"Netherwing:350"}, gold = 182800},
	["Netherwing Crystals"] = {icon = "Interface\\Icons\\INV_Misc_Gem_AzureDraenite_02", group = "Netherwing", SID = 5, ["rep"] = {"Netherwing:250"}, gold = 119900},
	["Nethermine Flayer Hide"] = {icon = "Interface\\Icons\\INV_Misc_Rune_12", group = "Netherwing", SID = 4, prof = "Skinning", ["rep"] = {"Netherwing:250"}, gold = 119900}, --Skinning
	["Netherdust Pollen"] = {icon = "Interface\\Icons\\INV_Enchant_DustSoul", group = "Netherwing", SID = 4, prof = "Herbalism", ["rep"] = {"Netherwing:250"}, gold = 119900}, --Herbalism
	["Nethercite Ore"] = {icon = "Interface\\Icons\\INV_Ore_Ethernium_01", group = "Netherwing", SID = 4, prof = "Mining", ["rep"] = {"Netherwing:250"}, gold = 119900}, --Mining
	["Dragons are the Least of Our Problems"] = {icon = "Interface\\Icons\\Ability_Hunter_Pet_Ravager", group = "Netherwing", SID = 5, ["rep"] = {"Netherwing:350"}, gold = 119900},
	["Disrupting the Twilight Portal"] = {icon = "Interface\\Icons\\INV_Armor_Shield_Naxxramas_D_01", SID = 6, ["rep"] = {"Netherwing:500"}, group = "Netherwing", gold = 119900},
	["A Slow Death"] = {icon = "Interface\\Icons\\INV_Misc_Food_60", group = "Netherwing", SID = 4, ["rep"] = {"Netherwing:250"}, gold = 119900},
	
	--Headless Horseman (Hallow's End)
	["Call the Headless Horseman"] = {icon = "Interface\\Icons\\INV_Misc_Bag_28_Halloween", group = "Holiday", SID = 0, dates = {starting = "10/18", ending = "11/02"},  gold = 7500},
}